$(function () {
    $('#ff').on('click',('.textbox-button'),function () {  //textBox按钮点击事件
        window.top.openScan();
    });
});

/**
 * 扫码回调
 * @type {{setResult: JSObjectHandle.setResult}}
 * created by dale 2017/9/15
 */
var JSObjectHandle = {
    setResult : function (code) {
        setTimeout(function () {
            $('#code').textbox('setValue',code);
        },0);
    }
};